<?php

namespace business\base\services;

use yii\db\Query;

class AreaService {

    public function getAreaCodesByCond($condition, $orcond, $fields = '*'){
        return (new Query())
            ->from('b2b_parameter.bizp_area')
            ->select($fields)
            ->where($condition)
            ->orWhere($orcond)
            ->createCommand(\Yii::$app->db)
            ->queryAll();
    }
}
